package org.ling.xuan.entity.mo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class LocalAdd {
    private String id;
    private String modifyId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctdTime;
    private String addMsg;
    private boolean send;
    private String modifyVersion;
    private String requireBank;
    private String requirementId;
    private String requirementDes;
    private List<String> markFileIds;
    private String bankCode;
    private boolean cur;
    private boolean deleted;
    private boolean commited;
    private String remark;
    //是否跳过sql执行 临时变量 非存储字段
    private boolean skipSql;
    private String deployType;
    
    public void copy2Cur(LocalAdd curr) {
        curr.setBankCode(this.getBankCode());
        curr.setModifyVersion(this.getModifyVersion());
        curr.setAddMsg(this.getAddMsg());
        curr.setModifyId(this.getModifyId());
        curr.setRequireBank(this.getRequireBank());
        curr.setRequirementId(this.getRequirementId());
        curr.setRequirementDes(this.getRequirementDes());
        curr.setDeployType(this.deployType);
        curr.setSkipSql(skipSql);
    }
}
